# Contributor: David Demelier <markand@malikania.fr>
# Maintainer: David Demelier <markand@malikania.fr>
pkgname=libretro-bk
pkgver=0_git20200310
pkgrel=0
_commit="d5252edcc7ece0a43ddcffef792bdb37587057ce"
pkgdesc="BK-0010/0011/Terak 8510a emulator"
url="https://github.com/libretro/bk-emulator"
arch="all"
license="custom"
source="$pkgname-$_commit.tar.gz::https://github.com/libretro/bk-emulator/archive/$_commit.tar.gz"
builddir="$srcdir/bk-emulator-$_commit"
options="!check" # No tests

build() {
	make -f Makefile.libretro
}

package() {
	install -Dm644 bk_libretro.so "$pkgdir"/usr/lib/libretro/bk_libretro.so
}

sha512sums="c413e01ab6821c77032e0d152a551cc7c8a8214c8bf4cd7a504f9edd0aaa4eb68d25d9772df51ce2f7f256d8ac433d75b256aebe78da35869648b82bd29d92c8  libretro-bk-d5252edcc7ece0a43ddcffef792bdb37587057ce.tar.gz"
